package xiaochangsama.ancientkungfugeneration.procedures;

import xiaochangsama.ancientkungfugeneration.init.AncientKungfuGenerationModItems;

import net.minecraft.world.item.ItemStack;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;

public class LearnQingGongProcedure {
	public static void execute(Entity entity) {
		if (entity == null)
			return;
		if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == AncientKungfuGenerationModItems.JIANG_HU_QING_GONG_BOOK.get()) {
			JiangHuQiangGongBookLearnProcedure.execute(entity);
		}
	}
}
